package com.itheima.mall.service.umsService;

import com.itheima.pojo.ums.UmsMenu;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class UmsMenuService {

    @DubboReference
    private UmsMenuApi umsMenuApi;

    /**
     * 根据关联菜单IDS数组查询菜单数组
     * @param menuIds 菜单IDS数组
     * @return
     */
    public ArrayList<UmsMenu> listMenu(ArrayList<Long> menuIds) {
        return umsMenuApi.listMenu(menuIds);
    }
}
